class window.vote_vm
  constructor: (@parent) ->
    @selectedIndex = ko.observable 0
  
  Submit_Vote: (d, e) =>
    @parent.current_game().winner @selectedIndex()
    console.log "The winner is: #{@selectedIndex()}"
    @parent.Navigate Templates.HOME